package com.example.index.web;

import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
//该类内部配置参数可以实时刷新
@RefreshScope
public class UploadAction {
    @Resource
    LoginProperties loginProperties;

    @GetMapping("getconfig")
    public LoginProperties getConfig(){
        return loginProperties;
    }
}
